import createReducer from './createReducer';
import {
    GET_HOME_MENU
} from '../actions/create';

const initState = {
    menus: {}
}

const handlers = {};

handlers[GET_HOME_MENU] = (state, action) => ({
    ...state,
    menus: action.menus
})

export default createReducer(initState, handlers);